projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66206b9
)
(momentary-string-display): Use save-excursion.
author
Richard M. Stallman
<rms@gnu.org>
Wed, 10 Jan 2007 01:15:07 +0000
(
01:15
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Wed, 10 Jan 2007 01:15:07 +0000
(
01:15
+0000)
lisp/subr.el
patch
|
blob
|
history
diff --git
a/lisp/subr.el
b/lisp/subr.el
index c5c12137e559aa058c6741a774abfc3f44810305..e7e9867b13e5d8256186c091937ad5e5fdde2aa3 100644
(file)
--- a/
lisp/subr.el
+++ b/
lisp/subr.el
@@
-1905,11
+1905,11
@@
If MESSAGE is nil, instructions to type EXIT-CHAR are displayed there."
(recenter (/ (window-height) 2)))
;; If that pushed message start off the screen,
;; scroll to start it at the top of the screen.
- (
move-to-window-line 0)
-
(if (> (point) pos
)
- (progn
+ (
save-excursion
+
(move-to-window-line 0
)
+ (if (> (point) pos)
(goto-char pos)
-
(recenter 0)))
+ (recenter 0)))
(message (or message "Type %s to continue editing.")
(single-key-description exit-char))
(let (char)